// mypage/accDeposit/accDeposit.js



Page({
  /*页面的初始数据*/
  data: {
    text1: '',
    val: '',
    pop_show: true,
    length:6,
    isFocus:false,
    Value:""
  },
  /*生命周期函数--监听页面加载*/
  onLoad: function (options) {
    
  },
  nav_go:function(){
    wx.navigateTo({
      url: "../checkCard/checkCard?type=2",
    })
  },
  input_val:function(e){
    var that = this;
    var val = e.detail.value;
    that.setData({val: e.detail.value})
  },
  open_pop:function(){
    var that = this;

    that.setData({pop_show: !that.data.pop_show,isFocus: true})
  },
  close_pop:function(){
    this.setData({pop_show: !this.data.pop_show,isFocus: false})
  },
  ver_focus(e){
    var that = this;
    var inputValue = e.detail.value;
    that.setData({ Value:inputValue, })
    if(inputValue.length == 6){
      wx.navigateTo({
        url: '../accSuccess/accSuccess?type=2',
      })
      that.setData({pop_show: !that.data.pop_show,isFocus: false})
    }
  }, 
  ver_tap(){
    var that = this;
    that.setData({ isFocus:true, })
  },
  find_password:function(){
    wx.navigateTo({
      url: '../accSetting/accSetting',
    })
    this.setData({pop_show: !this.data.pop_show,isFocus: false})
  }
})